﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;

namespace ExpenseSystem.Core.CustomerModules
{
    public abstract class CustomerHistoryManager : INormalManager<CustomerHistoryModel>
    {
        protected CustomerHistoryManager() { }
        public static CustomerHistoryManager CreateInstance()
        {
            return new CustomerHistoryBaseManager();
        }

        protected NormalDataUpdater<CustomerHistoryModel> updater = new CustomerHistoryUpdaterRegister().GetCustomerHistoryUpdater();
        public abstract bool Delete(CustomerHistoryModel CustomerHistory, out string message);
        public abstract bool Save(CustomerHistoryModel CustomerHistory, out string message, params IAddable<CustomerHistoryModel>[] addables);
        public abstract bool DeleteById(long[] userId,  out string message);

    }
}
